Tamara\Wp\Plugin\TamaraCheckout D

Total Complexity 194
Dependencies 16
Dependents 13
Total lines 1,633
Lines of code 863
Logical lines of code 382
Comment lines 471
Methods 81
Properties 5

Methods 81

Method Rating Maintainability Complexity Lines of code
tamaraRefundPayment()
A
41 11 55
updateTamaraCheckoutDataToOrder()
A
51 8 27
adjustTamaraPaymentTypesOnCheckout()
S
54 7 20
handleTamaraApi()
S
50 6 31
authoriseOrder()
S
58 6 15
forceRequireBillingPhone()
S
60 6 12
tamaraProductPopupWidget()
S
54 5 20
updatePayByInstalmentSettingUrl()
S
64 6 8
getTotalToCalculate()
S
60 5 13
registerTamaraCustomOrderStatuses()
S
43 1 65
initPlugin()
S
47 3 34
registerServices()
S
57 4 18
forceAuthoriseTamaraOrder()
S
50 3 30
isTamaraAdminSettingsScreen()
S
68 5 6
enqueueAdminSettingScripts()
S
61 4 12
handleTamaraFailureUrl()
S
53 3 23
handleTamaraCancelUrl()
S
53 3 23
getTamaraOrderByWcOrderId()
S
56 3 19
isProductPriceValid()
S
67 4 7
addTamaraAuthoriseFailedMessage()
S
65 4 8
tamaraAuthoriseHandler()
S
60 3 14
forceCaptureTamaraOrder()
S
51 2 28
getMinAmountOfEnabledPriorityInstalment()
S
62 3 12
getMaxAmountOfEnabledPriorityInstalment()
S
62 3 12
updateOrderStatusAndAddOrderNote()
S
62 3 11
isOrderTamaraApproved()
S
68 3 7
getDisplayedProductPrice()
S
66 3 9
populateMinAmountArrayOfEnabledPayInXs()
S
64 3 10
logMessage()
S
63 3 10
isRestRequest()
S
72 3 4
initInstanceWithConfig()
S
67 3 8
populateMaxAmountArrayOfEnabledPayInXs()
S
64 3 10
addCronJobTriggerScript()
S
58 1 20
addTamaraCustomOrderStatuses()
S
57 1 17
getAllTamaraGatewayIds()
S
63 1 15
activatePlugin()
S
70 2 6
getPriorityInstalmentPeriod()
S
64 2 10
showTamaraProductPopupWidget()
S
74 2 5
checkWooCommerceExistence()
S
64 2 9
getAdminSettingLink()
S
66 2 8
performCron()
S
68 2 8
adjustBillingPhoneDescription()
S
68 2 7
enqueueScripts()
S
64 2 9
__construct()
S
70 2 6
doAuthoriseOrderAction()
S
72 2 5
getTamaraOrderId()
S
69 2 7
logMessageFilePath()
S
77 2 3
addRefundNote()
S
68 2 7
getPayInXIds()
S
64 1 14
calculateInstalmentPlan()
S
63 1 10
isTamaraGatewayEnabled()
S
78 1 3
isPayInXEnabled()
S
77 1 3
isPayByInstalmentsEnabled()
S
78 1 3
isPayByLaterEnabled()
S
78 1 3
removeTrailingSlashes()
S
79 1 3
getTamaraPopupWidgetPosition()
S
79 1 3
setRestApiRequest()
S
81 1 3
getWCTamaraGatewayPayInXService()
S
75 1 4
getWCTamaraGatewayPayByInstalmentsService()
S
80 1 3
getWCTamaraGatewayService()
S
80 1 3
populateRestApiRequest()
S
77 1 4
getServiceView()
S
79 1 3
getService()
S
80 1 3
getRestApiRequest()
S
82 1 3
isForceBillingPhoneEnabled()
S
78 1 3
isCustomLogMessageEnabled()
S
78 1 3
deactivatePlugin()
S
81 1 3
isCronjobEnabled()
S
78 1 3
getWCTamaraGatewayOptions()
S
79 1 3
getWCTamaraGatewayOptionKey()
S
80 1 3
onSaveSettings()
S
80 1 3
logMessageFileUrl()
S
78 1 3
tamaraLoadTextDomain()
S
71 1 5
isOrderAuthorised()
S
78 1 3
preventOrderCancelAction()
S
71 1 6
tamaraCheckoutParams()
S
70 1 9
registerTamaraPaymentGateway()
S
76 1 4
noticeNonWooCommerce()
S
70 1 6
addSettingsLinks()
S
71 1 5
addCustomRewriteRules()
S
68 1 7
isTamaraGateway()
S
79 1 3